<%@ page import="myoa.permission.ActionNameObj" %>
<html>
<head>
    <meta name="layout" content="freshmade">
</head>

<body>
<div id="content-wrapper">
    <div class="center-wrapper">
        <div class="content">
            <div id="main">
                <div class="post">
                    <div class="post-title">
                        <h1>Role Information</h1>
                        角色管理
                        <g:render template="/template/messageBar"/>
                    </div>

                    <div class="post-date">
                        需要由管理员操作
                    </div>
                </div>

                <g:form action="update" id="${role.id}">
                    <div id="myform">
                        <div class="field">
                            <div class="key">Role Name</div>

                            <div class="value">
                                <div class="createfrom">${role.name}</div>
                            </div>

                            <div class="hint">
                                角色名字，硬编码，不可修改
                            </div>

                            <div class="clear"></div>
                        </div>

                        <div class="field">
                            <div class="key">Role Comment</div>

                            <div class="value">
                                <g:textField name="comment" value="${role.comment}"/>
                            </div>

                            <div class="clear"></div>
                        </div>

                        <div class="field">
                            <g:render template="permission" model="[setting: permissionSetting.setting]"/>
                        </div>

                        <div class="buttonbar">
                            <input type="submit" class="button" value="Submit"/>
                            <input type="reset" class="button" value="Reset"/>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>
</body>
</html>